import React, { Component } from 'react';                     // react专业类

import route from '../route';                                 // react路由
import DevTools from './DevTools';                            // 开启调试工具
import { HashRouter as Router } from 'react-router-dom';

export default class Root extends Component {
  render() {
    if (!this.route) this.route = route;
    return (
      <div>
        <Router children={this.route}/>
        {/* <DevTools /> */}
      </div>
    );
  }
}
